<?php

namespace App\Models\ChinaBank;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class CardModel extends Model
{
    use SoftDeletes;
    protected $table = "bank_card";
    protected $primaryKey = "card_id";
    protected $guarded = [];

    public function cardtype()
    {
        return $this->hasOne(CardTypeModel::class,'id','type');
    }
}
